package com.xsir.mapper;

import com.xsir.entity.ArticleTagRel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xsir.entity.Tag;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 文章-标签-关联表 Mapper 接口
 * </p>
 *
 * @author xsir
 * @since 2020-11-17
 */
@Repository
public interface ArticleTagRelMapper extends BaseMapper<ArticleTagRel> {
    /**
     * 批量给文章添加标签
     * @param articleId 文章编号
     * @param tagIds    标签编号
     */
    void insertBatch(@Param("articleId") Long articleId, @Param("tagIds") List<Long> tagIds);
}
